# This file was created automatically by SWIG 1.3.29.
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.

import _libsenna
import new
new_instancemethod = new.instancemethod
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
    if (name == "thisown"): return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'PySwigObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name,None)
    if method: return method(self,value)
    if (not static) or hasattr(self,name):
        self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)

def _swig_setattr(self,class_type,name,value):
    return _swig_setattr_nondynamic(self,class_type,name,value,0)

def _swig_getattr(self,class_type,name):
    if (name == "thisown"): return self.this.own()
    method = class_type.__swig_getmethods__.get(name,None)
    if method: return method(self)
    raise AttributeError,name

def _swig_repr(self):
    try: strthis = "proxy of " + self.this.__repr__()
    except: strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)

import types
try:
    _object = types.ObjectType
    _newclass = 1
except AttributeError:
    class _object : pass
    _newclass = 0
del types


SEN_INDEX_NORMALIZE = _libsenna.SEN_INDEX_NORMALIZE
SEN_INDEX_SPLIT_ALPHA = _libsenna.SEN_INDEX_SPLIT_ALPHA
SEN_INDEX_SPLIT_DIGIT = _libsenna.SEN_INDEX_SPLIT_DIGIT
SEN_INDEX_SPLIT_SYMBOL = _libsenna.SEN_INDEX_SPLIT_SYMBOL
SEN_INDEX_MORPH_ANALYSE = _libsenna.SEN_INDEX_MORPH_ANALYSE
SEN_INDEX_NGRAM = _libsenna.SEN_INDEX_NGRAM
SEN_INDEX_DELIMITED = _libsenna.SEN_INDEX_DELIMITED
SEN_INDEX_ENABLE_SUFFIX_SEARCH = _libsenna.SEN_INDEX_ENABLE_SUFFIX_SEARCH
SEN_INDEX_DISABLE_SUFFIX_SEARCH = _libsenna.SEN_INDEX_DISABLE_SUFFIX_SEARCH
SEN_INDEX_WITH_STORE = _libsenna.SEN_INDEX_WITH_STORE
SEN_INDEX_WITH_VACUUM = _libsenna.SEN_INDEX_WITH_VACUUM
SEN_SYM_WITH_SIS = _libsenna.SEN_SYM_WITH_SIS
SEN_SYM_NIL = _libsenna.SEN_SYM_NIL
SEN_SNIP_NORMALIZE = _libsenna.SEN_SNIP_NORMALIZE
SEN_SNIP_MAPPING_NONE = _libsenna.SEN_SNIP_MAPPING_NONE
SEN_SNIP_MAPPING_ESCAPE_HTML_SPECIALS = _libsenna.SEN_SNIP_MAPPING_ESCAPE_HTML_SPECIALS
SEN_PATH_MAX_LENGTH = _libsenna.SEN_PATH_MAX_LENGTH
sen_success = _libsenna.sen_success
sen_memory_exhausted = _libsenna.sen_memory_exhausted
sen_invalid_format = _libsenna.sen_invalid_format
sen_file_operation_error = _libsenna.sen_file_operation_error
sen_invalid_argument = _libsenna.sen_invalid_argument
sen_other_error = _libsenna.sen_other_error
sen_enc_default = _libsenna.sen_enc_default
sen_enc_none = _libsenna.sen_enc_none
sen_enc_euc_jp = _libsenna.sen_enc_euc_jp
sen_enc_utf8 = _libsenna.sen_enc_utf8
sen_enc_sjis = _libsenna.sen_enc_sjis
sen_enc_latin1 = _libsenna.sen_enc_latin1
sen_enc_koi8r = _libsenna.sen_enc_koi8r
sen_rec_document = _libsenna.sen_rec_document
sen_rec_section = _libsenna.sen_rec_section
sen_rec_position = _libsenna.sen_rec_position
sen_rec_userdef = _libsenna.sen_rec_userdef
sen_rec_none = _libsenna.sen_rec_none
sen_sel_or = _libsenna.sen_sel_or
sen_sel_and = _libsenna.sen_sel_and
sen_sel_but = _libsenna.sen_sel_but
sen_sel_adjust = _libsenna.sen_sel_adjust
sen_sel_exact = _libsenna.sen_sel_exact
sen_sel_partial = _libsenna.sen_sel_partial
sen_sel_unsplit = _libsenna.sen_sel_unsplit
sen_sel_near = _libsenna.sen_sel_near
sen_sel_similar = _libsenna.sen_sel_similar
sen_sel_term_extract = _libsenna.sen_sel_term_extract
sen_sort_descending = _libsenna.sen_sort_descending
sen_sort_ascending = _libsenna.sen_sort_ascending
sen_log_none = _libsenna.sen_log_none
sen_log_emerg = _libsenna.sen_log_emerg
sen_log_alert = _libsenna.sen_log_alert
sen_log_crit = _libsenna.sen_log_crit
sen_log_error = _libsenna.sen_log_error
sen_log_warning = _libsenna.sen_log_warning
sen_log_notice = _libsenna.sen_log_notice
sen_log_info = _libsenna.sen_log_info
sen_log_debug = _libsenna.sen_log_debug
sen_log_dump = _libsenna.sen_log_dump
sen_init = _libsenna.sen_init
sen_fin = _libsenna.sen_fin
sen_index_create = _libsenna.sen_index_create
sen_index_open = _libsenna.sen_index_open
sen_index_close = _libsenna.sen_index_close
sen_index_remove = _libsenna.sen_index_remove
sen_index_rename = _libsenna.sen_index_rename
sen_index_upd = _libsenna.sen_index_upd
sen_index_sel = _libsenna.sen_index_sel
sen_records_next = _libsenna.sen_records_next
sen_records_rewind = _libsenna.sen_records_rewind
sen_records_curr_score = _libsenna.sen_records_curr_score
sen_records_curr_key = _libsenna.sen_records_curr_key
sen_records_nhits = _libsenna.sen_records_nhits
sen_records_find = _libsenna.sen_records_find
sen_records_close = _libsenna.sen_records_close
sen_values_open = _libsenna.sen_values_open
sen_values_close = _libsenna.sen_values_close
sen_values_add = _libsenna.sen_values_add
sen_records_open = _libsenna.sen_records_open
sen_records_union = _libsenna.sen_records_union
sen_records_subtract = _libsenna.sen_records_subtract
sen_records_intersect = _libsenna.sen_records_intersect
sen_records_difference = _libsenna.sen_records_difference
sen_records_sort = _libsenna.sen_records_sort
sen_records_group = _libsenna.sen_records_group
sen_records_curr_rec = _libsenna.sen_records_curr_rec
class swig_sen_record_at_info(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, swig_sen_record_at_info, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, swig_sen_record_at_info, name)
    __repr__ = _swig_repr
    __swig_setmethods__["rh"] = _libsenna.swig_sen_record_at_info_rh_set
    __swig_getmethods__["rh"] = _libsenna.swig_sen_record_at_info_rh_get
    if _newclass:rh = property(_libsenna.swig_sen_record_at_info_rh_get, _libsenna.swig_sen_record_at_info_rh_set)
    __swig_setmethods__["score"] = _libsenna.swig_sen_record_at_info_score_set
    __swig_getmethods__["score"] = _libsenna.swig_sen_record_at_info_score_get
    if _newclass:score = property(_libsenna.swig_sen_record_at_info_score_get, _libsenna.swig_sen_record_at_info_score_set)
    __swig_setmethods__["n_subrecs"] = _libsenna.swig_sen_record_at_info_n_subrecs_set
    __swig_getmethods__["n_subrecs"] = _libsenna.swig_sen_record_at_info_n_subrecs_get
    if _newclass:n_subrecs = property(_libsenna.swig_sen_record_at_info_n_subrecs_get, _libsenna.swig_sen_record_at_info_n_subrecs_set)
    def __init__(self, *args): 
        this = _libsenna.new_swig_sen_record_at_info(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _libsenna.delete_swig_sen_record_at_info
    __del__ = lambda self : None;
swig_sen_record_at_info_swigregister = _libsenna.swig_sen_record_at_info_swigregister
swig_sen_record_at_info_swigregister(swig_sen_record_at_info)

sen_records_at = _libsenna.sen_records_at
class swig_sen_record_subrec_info(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, swig_sen_record_subrec_info, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, swig_sen_record_subrec_info, name)
    __repr__ = _swig_repr
    __swig_setmethods__["key"] = _libsenna.swig_sen_record_subrec_info_key_set
    __swig_getmethods__["key"] = _libsenna.swig_sen_record_subrec_info_key_get
    if _newclass:key = property(_libsenna.swig_sen_record_subrec_info_key_get, _libsenna.swig_sen_record_subrec_info_key_set)
    __swig_setmethods__["section"] = _libsenna.swig_sen_record_subrec_info_section_set
    __swig_getmethods__["section"] = _libsenna.swig_sen_record_subrec_info_section_get
    if _newclass:section = property(_libsenna.swig_sen_record_subrec_info_section_get, _libsenna.swig_sen_record_subrec_info_section_set)
    __swig_setmethods__["pos"] = _libsenna.swig_sen_record_subrec_info_pos_set
    __swig_getmethods__["pos"] = _libsenna.swig_sen_record_subrec_info_pos_get
    if _newclass:pos = property(_libsenna.swig_sen_record_subrec_info_pos_get, _libsenna.swig_sen_record_subrec_info_pos_set)
    __swig_setmethods__["score"] = _libsenna.swig_sen_record_subrec_info_score_set
    __swig_getmethods__["score"] = _libsenna.swig_sen_record_subrec_info_score_get
    if _newclass:score = property(_libsenna.swig_sen_record_subrec_info_score_get, _libsenna.swig_sen_record_subrec_info_score_set)
    __swig_setmethods__["n_subrecs"] = _libsenna.swig_sen_record_subrec_info_n_subrecs_set
    __swig_getmethods__["n_subrecs"] = _libsenna.swig_sen_record_subrec_info_n_subrecs_get
    if _newclass:n_subrecs = property(_libsenna.swig_sen_record_subrec_info_n_subrecs_get, _libsenna.swig_sen_record_subrec_info_n_subrecs_set)
    def __init__(self, *args): 
        this = _libsenna.new_swig_sen_record_subrec_info(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _libsenna.delete_swig_sen_record_subrec_info
    __del__ = lambda self : None;
swig_sen_record_subrec_info_swigregister = _libsenna.swig_sen_record_subrec_info_swigregister
swig_sen_record_subrec_info_swigregister(swig_sen_record_subrec_info)

class swig_sen_record_info(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, swig_sen_record_info, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, swig_sen_record_info, name)
    __repr__ = _swig_repr
    __swig_setmethods__["rec"] = _libsenna.swig_sen_record_info_rec_set
    __swig_getmethods__["rec"] = _libsenna.swig_sen_record_info_rec_get
    if _newclass:rec = property(_libsenna.swig_sen_record_info_rec_get, _libsenna.swig_sen_record_info_rec_set)
    __swig_setmethods__["n_subrecs"] = _libsenna.swig_sen_record_info_n_subrecs_set
    __swig_getmethods__["n_subrecs"] = _libsenna.swig_sen_record_info_n_subrecs_get
    if _newclass:n_subrecs = property(_libsenna.swig_sen_record_info_n_subrecs_get, _libsenna.swig_sen_record_info_n_subrecs_set)
    def __init__(self, *args): 
        this = _libsenna.new_swig_sen_record_info(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _libsenna.delete_swig_sen_record_info
    __del__ = lambda self : None;
swig_sen_record_info_swigregister = _libsenna.swig_sen_record_info_swigregister
swig_sen_record_info_swigregister(swig_sen_record_info)

sen_record_info = _libsenna.sen_record_info
sen_record_subrec_info = _libsenna.sen_record_subrec_info
sen_index_create_with_keys = _libsenna.sen_index_create_with_keys
sen_index_open_with_keys = _libsenna.sen_index_open_with_keys
sen_index_update = _libsenna.sen_index_update
class WeightVector(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, WeightVector, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, WeightVector, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _libsenna.new_WeightVector(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _libsenna.delete_WeightVector
    __del__ = lambda self : None;
    def __getitem__(*args): return _libsenna.WeightVector___getitem__(*args)
    def __setitem__(*args): return _libsenna.WeightVector___setitem__(*args)
    def cast(*args): return _libsenna.WeightVector_cast(*args)
    __swig_getmethods__["frompointer"] = lambda x: _libsenna.WeightVector_frompointer
    if _newclass:frompointer = staticmethod(_libsenna.WeightVector_frompointer)
WeightVector_swigregister = _libsenna.WeightVector_swigregister
WeightVector_swigregister(WeightVector)
WeightVector_frompointer = _libsenna.WeightVector_frompointer

sen_index_select = _libsenna.sen_index_select
class swig_sen_index_info(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, swig_sen_index_info, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, swig_sen_index_info, name)
    __repr__ = _swig_repr
    __swig_setmethods__["key_size"] = _libsenna.swig_sen_index_info_key_size_set
    __swig_getmethods__["key_size"] = _libsenna.swig_sen_index_info_key_size_get
    if _newclass:key_size = property(_libsenna.swig_sen_index_info_key_size_get, _libsenna.swig_sen_index_info_key_size_set)
    __swig_setmethods__["flags"] = _libsenna.swig_sen_index_info_flags_set
    __swig_getmethods__["flags"] = _libsenna.swig_sen_index_info_flags_get
    if _newclass:flags = property(_libsenna.swig_sen_index_info_flags_get, _libsenna.swig_sen_index_info_flags_set)
    __swig_setmethods__["initial_n_segments"] = _libsenna.swig_sen_index_info_initial_n_segments_set
    __swig_getmethods__["initial_n_segments"] = _libsenna.swig_sen_index_info_initial_n_segments_get
    if _newclass:initial_n_segments = property(_libsenna.swig_sen_index_info_initial_n_segments_get, _libsenna.swig_sen_index_info_initial_n_segments_set)
    __swig_setmethods__["encoding"] = _libsenna.swig_sen_index_info_encoding_set
    __swig_getmethods__["encoding"] = _libsenna.swig_sen_index_info_encoding_get
    if _newclass:encoding = property(_libsenna.swig_sen_index_info_encoding_get, _libsenna.swig_sen_index_info_encoding_set)
    __swig_setmethods__["nrecords_keys"] = _libsenna.swig_sen_index_info_nrecords_keys_set
    __swig_getmethods__["nrecords_keys"] = _libsenna.swig_sen_index_info_nrecords_keys_get
    if _newclass:nrecords_keys = property(_libsenna.swig_sen_index_info_nrecords_keys_get, _libsenna.swig_sen_index_info_nrecords_keys_set)
    __swig_setmethods__["file_size_keys"] = _libsenna.swig_sen_index_info_file_size_keys_set
    __swig_getmethods__["file_size_keys"] = _libsenna.swig_sen_index_info_file_size_keys_get
    if _newclass:file_size_keys = property(_libsenna.swig_sen_index_info_file_size_keys_get, _libsenna.swig_sen_index_info_file_size_keys_set)
    __swig_setmethods__["nrecords_lexicon"] = _libsenna.swig_sen_index_info_nrecords_lexicon_set
    __swig_getmethods__["nrecords_lexicon"] = _libsenna.swig_sen_index_info_nrecords_lexicon_get
    if _newclass:nrecords_lexicon = property(_libsenna.swig_sen_index_info_nrecords_lexicon_get, _libsenna.swig_sen_index_info_nrecords_lexicon_set)
    __swig_setmethods__["file_size_lexicon"] = _libsenna.swig_sen_index_info_file_size_lexicon_set
    __swig_getmethods__["file_size_lexicon"] = _libsenna.swig_sen_index_info_file_size_lexicon_get
    if _newclass:file_size_lexicon = property(_libsenna.swig_sen_index_info_file_size_lexicon_get, _libsenna.swig_sen_index_info_file_size_lexicon_set)
    __swig_setmethods__["inv_seg_size"] = _libsenna.swig_sen_index_info_inv_seg_size_set
    __swig_getmethods__["inv_seg_size"] = _libsenna.swig_sen_index_info_inv_seg_size_get
    if _newclass:inv_seg_size = property(_libsenna.swig_sen_index_info_inv_seg_size_get, _libsenna.swig_sen_index_info_inv_seg_size_set)
    __swig_setmethods__["inv_chunk_size"] = _libsenna.swig_sen_index_info_inv_chunk_size_set
    __swig_getmethods__["inv_chunk_size"] = _libsenna.swig_sen_index_info_inv_chunk_size_get
    if _newclass:inv_chunk_size = property(_libsenna.swig_sen_index_info_inv_chunk_size_get, _libsenna.swig_sen_index_info_inv_chunk_size_set)
    def __init__(self, *args): 
        this = _libsenna.new_swig_sen_index_info(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _libsenna.delete_swig_sen_index_info
    __del__ = lambda self : None;
swig_sen_index_info_swigregister = _libsenna.swig_sen_index_info_swigregister
swig_sen_index_info_swigregister(swig_sen_index_info)

sen_index_info = _libsenna.sen_index_info
sen_index_path = _libsenna.sen_index_path
sen_query_open = _libsenna.sen_query_open
sen_query_rest = _libsenna.sen_query_rest
sen_query_close = _libsenna.sen_query_close
sen_query_exec = _libsenna.sen_query_exec
sen_index_del = _libsenna.sen_index_del
sen_set_close = _libsenna.sen_set_close
sen_set_cursor_open = _libsenna.sen_set_cursor_open
sen_set_sym_id_cursor_next = _libsenna.sen_set_sym_id_cursor_next
sen_set_cursor_close = _libsenna.sen_set_cursor_close
sen_sym_create = _libsenna.sen_sym_create
sen_sym_open = _libsenna.sen_sym_open
class swig_sen_sym_info(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, swig_sen_sym_info, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, swig_sen_sym_info, name)
    __repr__ = _swig_repr
    __swig_setmethods__["key_size"] = _libsenna.swig_sen_sym_info_key_size_set
    __swig_getmethods__["key_size"] = _libsenna.swig_sen_sym_info_key_size_get
    if _newclass:key_size = property(_libsenna.swig_sen_sym_info_key_size_get, _libsenna.swig_sen_sym_info_key_size_set)
    __swig_setmethods__["flags"] = _libsenna.swig_sen_sym_info_flags_set
    __swig_getmethods__["flags"] = _libsenna.swig_sen_sym_info_flags_get
    if _newclass:flags = property(_libsenna.swig_sen_sym_info_flags_get, _libsenna.swig_sen_sym_info_flags_set)
    __swig_setmethods__["encoding"] = _libsenna.swig_sen_sym_info_encoding_set
    __swig_getmethods__["encoding"] = _libsenna.swig_sen_sym_info_encoding_get
    if _newclass:encoding = property(_libsenna.swig_sen_sym_info_encoding_get, _libsenna.swig_sen_sym_info_encoding_set)
    __swig_setmethods__["nrecords"] = _libsenna.swig_sen_sym_info_nrecords_set
    __swig_getmethods__["nrecords"] = _libsenna.swig_sen_sym_info_nrecords_get
    if _newclass:nrecords = property(_libsenna.swig_sen_sym_info_nrecords_get, _libsenna.swig_sen_sym_info_nrecords_set)
    __swig_setmethods__["file_size"] = _libsenna.swig_sen_sym_info_file_size_set
    __swig_getmethods__["file_size"] = _libsenna.swig_sen_sym_info_file_size_get
    if _newclass:file_size = property(_libsenna.swig_sen_sym_info_file_size_get, _libsenna.swig_sen_sym_info_file_size_set)
    def __init__(self, *args): 
        this = _libsenna.new_swig_sen_sym_info(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _libsenna.delete_swig_sen_sym_info
    __del__ = lambda self : None;
swig_sen_sym_info_swigregister = _libsenna.swig_sen_sym_info_swigregister
swig_sen_sym_info_swigregister(swig_sen_sym_info)

sen_sym_info = _libsenna.sen_sym_info
sen_sym_close = _libsenna.sen_sym_close
sen_sym_remove = _libsenna.sen_sym_remove
sen_sym_get = _libsenna.sen_sym_get
sen_sym_at = _libsenna.sen_sym_at
sen_sym_del = _libsenna.sen_sym_del
sen_sym_size = _libsenna.sen_sym_size
sen_sym_key = _libsenna.sen_sym_key
sen_sym_prefix_search = _libsenna.sen_sym_prefix_search
sen_sym_suffix_search = _libsenna.sen_sym_suffix_search
sen_sym_common_prefix_search = _libsenna.sen_sym_common_prefix_search
sen_sym_pocket_get = _libsenna.sen_sym_pocket_get
sen_sym_pocket_set = _libsenna.sen_sym_pocket_set
sen_sym_next = _libsenna.sen_sym_next
sen_snip_open = _libsenna.sen_snip_open
sen_snip_close = _libsenna.sen_snip_close
sen_snip_add_cond = _libsenna.sen_snip_add_cond
sen_snip_exec = _libsenna.sen_snip_exec
sen_snip_get_result = _libsenna.sen_snip_get_result


